//
// Created by 66477 on 2022/9/21.
//

#include "q1/List3_1.h"
#include "q2/List3_2.h"
#include "q3/List3_3.h"

int main() {

    /**
     * 第一问
     */
    delete (new List3_1())
            ->insert(1)->insert(2)->insert(3)->insert(4)->insert(5)->insert(6)->listGo()->print()
            ->deletePre()->print()
            ->deletePre()->print();
    cout << endl;

    /**
     * 第二问
     */
    delete (new List3_2("Ac8&^vi(350>{,fe;OPUho++;2ss35f56{!2@=&663"))
            ->print()
            ->classification()->print3Classification();
    cout << endl;

    /**
     * 第三问
     */
    delete (new List3_3())->locate('a')->locate('b')->locate('c')->print()
            ->locate('b')->print()
            ->locate('a')->print()
            ->locate('b')->print()
            ->locate('d')->print();

}

